/**
 * Created by nengjian on 2017/4/17.
 */
module.exports = app => {
    const bodyfilter = app.middlewares.bodyfilter({ match: '/wapi/fileupload' });

    app.get('/wxing', bodyfilter, 'wxing.index');
    app.get('/wxing/:id', bodyfilter,'wxing.index');

    app.get('/wxing/:id/:detailid', 'wxing.detail');
    app.resources('/wapi/fileupload',bodyfilter, 'utils.apiFileupload');
};